﻿@model Inovout.Account.Web.Models.OrganizationSignUpInfo
@{
    Layout = "~/Views/Shared/_SignLayout.cshtml";
    ViewBag.Title = "三宝云账户";
}


<header class="reg_header">
    <img src="~/Styles/Themes/Google/Images/logo_2x.png" /><span><a href='@Url.Action("SignIn", "Account", new { returnUrl = ViewBag.ReturnUrl })'>登录</a></span>
</header>

<div class="reg_main w80">
    <h1>创建您的三宝云账户</h1>
    <div class="wgt">
        <div class="w-1-2">
            <h2>您只需注册一个帐户即可 </h2>
            <p>只需一组用户名和密码，即可畅享 三宝云 所有产品和服务。 </p>
            <img id="accountImg"  src="~/Styles/Themes/Google/Images/logo_strip_sign_up_2x.png">
            <h2>定制自己专属的 三宝云 设置 </h2>
            <p>按照自己喜欢的方式设置个人资料和偏好设置。 </p>
            <img id="profileImg" src="~/Styles/Themes/Google/Images/profiles_2x.png">
            <h2>随时随地使用 </h2>
            <p>从一台设备换到另一台设备时，会紧接着上次中断处继续。 </p>
            <img id="deviceImg" src="~/Styles/Themes/Google/Images/devices_2x.png">
        </div>
        <div class="w-1-2">
            <div class="wgt">
                <div class="reg_form">
                    @using (Html.BeginForm("SignUp", "Account", new { returnUrl = ViewBag.ReturnUrl ?? Url.Content("~/") }))
                    { 
                        @*@Html.AntiForgeryToken()*@
                        @Html.ValidationSummary(true)
                        <div class="reg_field">
                            @Html.LabelFor(model => model.UserName, "用户名", new { @class = "w-1" })
                            @Html.TextBoxFor(model => model.UserName, new { maxlength = 10 })
                            @Html.ValidationMessageFor(model => model.UserName)
                        </div>
                        <div class="reg_field">
                            @Html.LabelFor(model => model.Password, "密码", new { @class = "w-1" })
                            @Html.EncryptPasswordFor(model => model.Password, new Dictionary<string, object>() { { "maxlength", "10" } })
                            @Html.ValidationMessageFor(model => model.Password)
                        </div>
                        <div class="reg_field">
                            @Html.LabelFor(model => model.ConfirmPassword, "确认密码", new { @class = "w-1" })
                            @Html.PasswordFor(model => model.ConfirmPassword, 10)
                            @Html.ValidationMessageFor(model => model.ConfirmPassword)
                        </div>
                        <div class="reg_field">
                            @Html.LabelFor(model => model.OrganizationName, "机构名称", new { @class = "w-1" })
                            @Html.TextBoxFor(model => model.OrganizationName, new { maxlength = 20 })
                            @Html.ValidationMessageFor(model => model.OrganizationName)
                        </div>  
                        <div class="reg_field">
                            @Html.LabelFor(model => model.OrganizationEmail, "邮箱地址", new { @class = "w-1" })
                            @Html.TextBoxFor(model => model.OrganizationEmail, new { maxlength = 50 })
                            @Html.ValidationMessageFor(model => model.OrganizationEmail)
                        </div>  
                        <div class="reg_finish w-1">
                            <span>@Html.Submit("注册", 10)</span>
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>
</div>


